<template>
    <div class="sms-recharge">
        <tabs :tabs="tabLists" class="tab" :handleClick="handleClick"></tabs>
        <router-view></router-view>
    </div>
</template>
<script>
    import Tabs from '@/components/tabs/tabs'  
    export default {
        name: "sms-recharge",
        data(){
            return{
                tabLists: [
                    {"label": "经销商列表", "name": 'first'},
                    {"label": "充值日志", "name": 'second'},
                ],
            }
        },
        components: {
            Tabs,
        },
        methods: {
            handleClick(tab, event) {
                
                if (tab.index == 0) {
					/* this.$router.push({
						path:"/home/operate-panel/sms-recharge/first"
					})  */
					/* this.$router.push({
						name:"sms-recharge-first"
					})  */
					this.$router.push("/home/operate-panel/sms-recharge/first")
				} else if(tab.index == 1) {
					/* this.$router.push({
                        path:"/home/operate-panel/sms-recharge/second"
					})  */
					/* this.$router.push({
						name:"sms-recharge-second"
					})  */
					this.$router.push("/home/operate-panel/sms-recharge/second")
                    /* this.tabLists=[
                        {"label":"经销商列表","name":"first","content":storeList},
                        {"label":"充值日志","name":"second","content":log},
                        {"label":"添加经销商","name":"third","content":storeList}, 
                    ]; */
                } else if(tab.index == 2) {
                }
			}
        },
        mounted(){//页面刷新就执行
            /* this.tabLists=[
                {"label":"22","name":"first"},
                {"label":"充值333444dfd日志","name":"second"},
                {"label":"添加经销商","name":"third"},
			]; */
        }
    }
    
</script>
<style scoped lang="scss">
</style>
